﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ModelLayer
{
	[DataContract]
	public class Ticket
	{
		[DataMember]
		private int _id;
		[DataMember]
		private Schedule _schedule;
		[DataMember]
		private Seat _seat;

		// *** Constructor ***
		public Ticket()
		{
			_id = 0;
			_schedule = null;
			_seat = null;
		}
		public Ticket(int id, Schedule schedule, Seat seat)
		{
			_id = id;
			_schedule = schedule;
			_seat = seat;
		}

		// ** Getters & setters
		[DataMember]
		public int id
		{
			get { return _id; }
			set { _id = value; }
		}
		[DataMember]
		public Schedule schedule
		{
			get { return _schedule; }
			set { _schedule = value; }
		}
		[DataMember]
		public Seat seat
		{
			get { return _seat; }
			set { _seat = value; }
		}
	}
}
